]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
config: Check for new required GnomeBluetooth API
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 1 Sep 2022 15:30:33 +0000 (17:30 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 3 Sep 2022 15:05:57 +0000 (15:05 +0000)
Client.default_adapter_state is a recent API addition, so update
the HAVE_BLUETOOTH check accordingly before depending on it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2444>

js/misc/config.js.in

index deb5139d176ef0427f516ef2a83246711dc9c0b0..7fc0e637a1fa7800e63a9c1e26c8630a84486ad0 100644 (file)
@@ -19,7 +19,8 @@ var PKGDATADIR = '@datadir@/@PACKAGE_NAME@';
 /* g-i package versions */
 var LIBMUTTER_API_VERSION = '@LIBMUTTER_API_VERSION@'
 
-var HAVE_BLUETOOTH = pkg.checkSymbol('GnomeBluetooth', '3.0');
+var HAVE_BLUETOOTH = pkg.checkSymbol('GnomeBluetooth', '3.0',
+    'Client.default_adapter_state')
 var HAVE_RECORDER =
     pkg.checkSymbol('Gst', '1.0') &&
     imports.gi.Gst.init_check(null) &&